﻿using cludg.Web.Core.Bootstrappers;
using cludg.Repository.NHibernate;

namespace cludg.Web.Site.Bootstrappers
{
	public class UpdateDatabaseBootstrapper : Bootstrapper
	{
		protected readonly NHibernateController SessionController;

		public UpdateDatabaseBootstrapper(NHibernateController sessionController)
		{
			SessionController = sessionController;
		}

		public override void Execute()
		{
			SessionController.UpdateDatabaseSchema();
		}
	}
}